package com.chen.demo.rhombus.ohs.local.pl.command;

import com.chen.demo.rhombus.domain.enums.Type;
import com.chen.winnerframework.cqrs.command.Command;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class UserAddCommand implements Command {
    @NotNull(message = "用户名不能为空")
    private String username;
    @NotNull(message = "密码不能为空")
    private Integer password;
    @NotNull(message = "类型不能为空")
    private Type type;
}
